const API = require("../../http/API")
const http = require("../../http/http")
Page({

  /**
   * 页面的初始数据
   */
  data: {
    sdList: [{ img: "https://assets-cdn.lanqb.com/imgv3_m/images-icon/submenu/h1-b_2211.png", tit: "全部课程" }, { img: "https://assets-cdn.lanqb.com/imgv3_m/images-icon/submenu/h2-o_2211.png", tit: "直播班" }, { img: "https://assets-cdn.lanqb.com/imgv3_m/images-icon/submenu/h3-p_2211.png", tit: "特训班" }, { img: "https://assets-cdn.lanqb.com/imgv3_m/images-icon/submenu/h4-g_2211.png", tit: "入门班" }, { img: "https://assets-cdn.lanqb.com/imgv3_m/images-icon/submenu/h5-p_2211.png", tit: "学习问答" }, { img: "https://assets-cdn.lanqb.com/imgv3_m/images-icon/submenu/h6-r_2211.png", tit: "学习问答" }, { img: "https://assets-cdn.lanqb.com/imgv3_m/images-icon/submenu/h7-y_2211.png", tit: "怎样学习" }, { img: "https://assets-cdn.lanqb.com/imgv3_m/images-icon/submenu/h8-c_2211.png", tit: "关于我们" }],
    bannerLists: [],
    rmList: [{ tit: "坚持画画，领高额奖学金" }, { tit: "30天学会用ipad画插画" }, { tit: "日系插画，怎么上手" }, { tit: "重磅！日系插画直播教学" }],
    hotLists: []
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    http(API.bannerList).then(res => {
      this.setData({
        bannerLists: res.data.data
      })
    })
    http(API.hotList).then(res => {
      this.setData({
        hotLists: res.data.data
      })
      console.log(this.data.hotLists);
    })
  },

})